package com.zkw.dao;

import com.zkw.domain.Book;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface BookMapper {
    @Select("select * from tbl_book where id=#{id}")
    Book findById(Integer id);

    Book findBookById(Integer id);

    //@Insert("insert into tbl_book(type,name,description) values(#{type},#{name},#{description})")
    Integer insertBook(Book book);
}
